package GUI;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class PersonDesign extends JPanel
{
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args)
	{
		EventQueue.invokeLater(new Runnable()
		{
			public void run()
			{
				try
				{
					PersonDesign frame = new PersonDesign();
					frame.setVisible(true);
				} catch (Exception e)
				{
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public PersonDesign()
	{
		this.setBackground(Color.LIGHT_GRAY);
		this.setBorder(new EmptyBorder(5, 5, 5, 5));
		this.setLayout(null);

		JPanel panel = new JPanel();
		panel.setBounds(0, 0, 434, 262);
		this.add(panel);
		panel.setLayout(null);

		JLabel lblNewLabel = new JLabel("Navn:");
		lblNewLabel.setToolTipText("Indtast fulde navn!");
		lblNewLabel.setFont(new Font("Calibri", Font.PLAIN, 15));
		lblNewLabel.setBounds(10, 54, 46, 14);
		panel.add(lblNewLabel);

		textField = new JTextField();
		textField.setBounds(112, 51, 86, 20);
		panel.add(textField);
		textField.setColumns(10);

		JLabel lblAdresse = new JLabel("Adresse:");
		lblAdresse.setToolTipText("");
		lblAdresse.setFont(new Font("Calibri", Font.PLAIN, 15));
		lblAdresse.setBounds(225, 54, 59, 14);
		panel.add(lblAdresse);

		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(294, 51, 86, 20);
		panel.add(textField_1);

		JLabel lblTlfNr = new JLabel("Tlf. nr:");
		lblTlfNr.setToolTipText("");
		lblTlfNr.setFont(new Font("Calibri", Font.PLAIN, 15));
		lblTlfNr.setBounds(10, 103, 46, 14);
		panel.add(lblTlfNr);

		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(112, 100, 86, 20);
		panel.add(textField_2);

		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(294, 100, 86, 20);
		panel.add(textField_3);

		JLabel lblId = new JLabel("ID:");
		lblId.setToolTipText("");
		lblId.setFont(new Font("Calibri", Font.PLAIN, 15));
		lblId.setBounds(225, 103, 59, 14);
		panel.add(lblId);

		JButton btnNewButton = new JButton("Tilf\u00F8j kunde");
		btnNewButton.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent arg0)
			{
			}
		});
		btnNewButton.setBounds(109, 153, 89, 23);
		panel.add(btnNewButton);

		JButton btnSletKundeid = new JButton("Slet kunde");
		btnSletKundeid.setBounds(109, 206, 112, 23);
		panel.add(btnSletKundeid);

		JButton btnFindKunde = new JButton("Find kunde");
		btnFindKunde.setToolTipText("Indtast telefonnumeret!");
		btnFindKunde.setBounds(268, 153, 112, 23);
		panel.add(btnFindKunde);

		JButton btnClear = new JButton("Clear");
		btnClear.setToolTipText("");
		btnClear.setBounds(268, 206, 112, 23);
		panel.add(btnClear);
	}

}
